home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1992-10-11 | 4.4 KB | [ TEXT/KAHL]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
66%
dexvert
Compact Compressed (Unix) (archive/compact)
ext
Supported
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, Sun Oct 11 14:30:00 1992, modified Sun Oct 11 14:30:00 1992, creator Think C, type ASCII, 3967 bytes "appletpalette.c" , at 0xfff 340 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ KAHL]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 0f 61 70 70 6c 65 74 | 70 61 6c 65 74 74 65 2e |..applet|palette.| |00000010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 4b 41 48 | 4c 00 00 00 00 00 00 00 |.TEXTKAH|L.......| |00000050| 00 00 00 00 00 0f 7f 00 | 00 01 54 a6 fe 23 28 a6 |........|..T..#(.| |00000060| fe 23 28 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.#(.....|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 39 6b 00 00 |........|....9k..| |00000080| 0d 2f 2a a9 20 43 6f 70 | 79 72 69 67 68 74 20 31 |./*. Cop|yright 1| |00000090| 39 38 38 2d 31 39 39 32 | 20 55 73 65 72 4c 61 6e |988-1992| UserLan| |000000a0| 64 20 53 6f 66 74 77 61 | 72 65 2c 20 49 6e 63 2e |d Softwa|re, Inc.| |000000b0| 20 20 41 6c 6c 20 52 69 | 67 68 74 73 20 52 65 73 | All Ri|ghts Res| |000000c0| 65 72 76 65 64 2e 2a 2f | 0d 0d 0d 23 69 6e 63 6c |erved.*/|...#incl| |000000d0| 75 64 65 20 22 61 70 70 | 6c 65 74 64 65 66 73 2e |ude "app|letdefs.| |000000e0| 68 22 0d 23 69 6e 63 6c | 75 64 65 20 22 61 70 70 |h".#incl|ude "app| |000000f0| 6c 65 74 71 75 69 63 6b | 64 72 61 77 2e 68 22 0d |letquick|draw.h".| |00000100| 23 69 6e 63 6c 75 64 65 | 20 22 61 70 70 6c 65 74 |#include| "applet| |00000110| 73 74 72 69 6e 67 73 2e | 68 22 0d 23 69 6e 63 6c |strings.|h".#incl| |00000120| 75 64 65 20 22 61 70 70 | 6c 65 74 6b 62 2e 68 22 |ude "app|letkb.h"| |00000130| 0d 23 69 6e 63 6c 75 64 | 65 20 22 61 70 70 6c 65 |.#includ|e "apple| |00000140| 74 6d 65 6d 6f 72 79 2e | 68 22 0d 23 69 6e 63 6c |tmemory.|h".#incl| |00000150| 75 64 65 20 22 61 70 70 | 6c 65 74 6d 6f 75 73 65 |ude "app|letmouse| |00000160| 2e 68 22 0d 23 69 6e 63 | 6c 75 64 65 20 22 61 70 |.h".#inc|lude "ap| |00000170| 70 6c 65 74 70 61 6c 65 | 74 74 65 2e 68 22 0d 0d |pletpale|tte.h"..| |00000180| 0d 0d 0d 0d 23 64 65 66 | 69 6e 65 20 64 72 61 77 |....#def|ine draw| |00000190| 69 6e 73 65 74 20 33 0d | 23 64 65 66 69 6e 65 20 |inset 3.|#define | |000001a0| 63 74 70 65 72 6c 69 6e | 65 20 32 0d 23 64 65 66 |ctperlin|e 2.#def| |000001b0| 69 6e 65 20 68 65 69 67 | 68 74 70 61 6c 65 74 74 |ine heig|htpalett| |000001c0| 65 69 63 6f 6e 20 28 68 | 65 69 67 68 74 73 6d 61 |eicon (h|eightsma| |000001d0| 6c 6c 69 63 6f 6e 20 2b | 20 36 29 0d 23 64 65 66 |llicon +| 6).#def| |000001e0| 69 6e 65 20 77 69 64 74 | 68 70 61 6c 65 74 74 65 |ine widt|hpalette| |000001f0| 69 63 6f 6e 20 28 77 69 | 64 74 68 73 6d 61 6c 6c |icon (wi|dthsmall| |00000200| 69 63 6f 6e 20 2b 20 36 | 29 0d 23 64 65 66 69 6e |icon + 6|).#defin| |00000210| 65 20 62 72 65 61 6b 70 | 69 78 65 6c 73 20 34 0d |e breakp|ixels 4.| |00000220| 0d 0d 0d 73 74 61 74 69 | 63 20 76 6f 69 64 20 67 |...stati|c void g| |00000230| 65 74 69 63 6f 6e 72 65 | 63 74 20 28 68 64 6c 70 |eticonre|ct (hdlp| |00000240| 61 6c 65 74 74 65 72 65 | 63 6f 72 64 20 68 70 61 |alettere|cord hpa| |00000250| 6c 2c 20 73 68 6f 72 74 | 20 69 63 6f 6e 6e 75 6d |l, short| iconnum| |00000260| 2c 20 52 65 63 74 20 2a | 72 69 63 6f 6e 29 20 7b |, Rect *|ricon) {| |00000270| 0d 09 0d 09 2f 2a 0d 09 | 69 63 6f 6e 6e 75 6d 20 |..../*..|iconnum | |00000280| 69 73 20 30 2d 62 61 73 | 65 64 2e 0d 09 2a 2f 0d |is 0-bas|ed...*/.| |00000290| 09 0d 09 52 65 63 74 20 | 72 70 61 6c 20 3d 20 28 |...Rect |rpal = (| |000002a0| 2a 2a 68 70 61 6c 29 2e | 72 3b 0d 09 73 68 6f 72 |**hpal).|r;..shor| |000002b0| 74 20 65 78 74 72 61 70 | 69 78 65 6c 73 20 3d 20 |t extrap|ixels = | |000002c0| 30 3b 0d 09 52 65 63 74 | 20 72 3b 0d 09 73 68 6f |0;..Rect| r;..sho| |000002d0| 72 74 20 6c 6e 75 6d 3b | 0d 09 73 68 6f 72 74 20 |rt lnum;|..short | |000002e0| 69 3b 0d 09 0d 09 66 6f | 72 20 28 69 20 3d 20 30 |i;....fo|r (i = 0| |000002f0| 3b 20 69 20 3c 20 69 63 | 6f 6e 6e 75 6d 3b 20 69 |; i < ic|onnum; i| |00000300| 2b 2b 29 20 7b 0d 09 0d | 09 09 69 66 20 28 28 2a |++) {...|..if ((*| |00000310| 2a 68 70 61 6c 29 2e 69 | 74 65 6d 20 5b 69 5d 2e |*hpal).i|tem [i].| |00000320| 62 72 65 61 6b 61 66 74 | 65 72 29 0d 09 09 09 65 |breakaft|er)....e| |00000330| 78 74 72 61 70 69 78 65 | 6c 73 20 2b 3d 20 62 72 |xtrapixe|ls += br| |00000340| 65 61 6b 70 69 78 65 6c | 73 3b 0d 09 09 7d 20 2f |eakpixel|s;...} /| |00000350| 2a 66 6f 72 2a 2f 0d 09 | 0d 09 6c 6e 75 6d 20 3d |*for*/..|..lnum =| |00000360| 20 28 69 63 6f 6e 6e 75 | 6d 20 2f 20 63 74 70 65 | (iconnu|m / ctpe| |00000370| 72 6c 69 6e 65 29 3b 0d | 09 0d 09 72 2e 74 6f 70 |rline);.|...r.top| |00000380| 20 3d 20 72 70 61 6c 2e | 74 6f 70 20 2b 20 64 72 | = rpal.|top + dr| |00000390| 61 77 69 6e 73 65 74 20 | 2b 20 28 6c 6e 75 6d 20 |awinset |+ (lnum | |000003a0| 2a 20 28 68 65 69 67 68 | 74 70 61 6c 65 74 74 65 |* (heigh|tpalette| |000003b0| 69 63 6f 6e 20 2d 20 31 | 29 29 20 2b 20 65 78 74 |icon - 1|)) + ext| |000003c0| 72 61 70 69 78 65 6c 73 | 3b 0d 09 0d 09 72 2e 62 |rapixels|;....r.b| |000003d0| 6f 74 74 6f 6d 20 3d 20 | 72 2e 74 6f 70 20 2b 20 |ottom = |r.top + | |000003e0| 68 65 69 67 68 74 70 61 | 6c 65 74 74 65 69 63 6f |heightpa|letteico| |000003f0| 6e 3b 0d 09 0d 09 72 2e | 6c 65 66 74 20 3d 20 72 |n;....r.|left = r| |00000400| 70 61 6c 2e 6c 65 66 74 | 20 2b 20 64 72 61 77 69 |pal.left| + drawi| |00000410| 6e 73 65 74 3b 0d 09 0d | 09 69 66 20 28 69 63 6f |nset;...|.if (ico| |00000420| 6e 6e 75 6d 20 25 20 32 | 29 0d 09 09 72 2e 6c 65 |nnum % 2|)...r.le| |00000430| 66 74 20 2b 3d 20 77 69 | 64 74 68 70 61 6c 65 74 |ft += wi|dthpalet| |00000440| 74 65 69 63 6f 6e 20 2d | 20 31 3b 0d 09 0d 09 72 |teicon -| 1;....r| |00000450| 2e 72 69 67 68 74 20 3d | 20 72 2e 6c 65 66 74 20 |.right =| r.left | |00000460| 2b 20 77 69 64 74 68 70 | 61 6c 65 74 74 65 69 63 |+ widthp|aletteic| |00000470| 6f 6e 3b 0d 09 0d 09 2a | 72 69 63 6f 6e 20 3d 20 |on;....*|ricon = | |00000480| 72 3b 0d 09 7d 20 2f 2a | 67 65 74 69 63 6f 6e 72 |r;..} /*|geticonr| |00000490| 65 63 74 2a 2f 0d 09 0d | 09 0d 68 64 6c 70 61 6c |ect*/...|..hdlpal| |000004a0| 65 74 74 65 72 65 63 6f | 72 64 20 6e 65 77 70 61 |ettereco|rd newpa| |000004b0| 6c 65 74 74 65 20 28 57 | 69 6e 64 6f 77 50 74 72 |lette (W|indowPtr| |000004c0| 20 6d 61 63 77 69 6e 64 | 6f 77 2c 20 73 68 6f 72 | macwind|ow, shor| |000004d0| 74 20 63 74 69 63 6f 6e | 73 29 20 7b 0d 0d 09 68 |t cticon|s) {...h| |000004e0| 64 6c 70 61 6c 65 74 74 | 65 72 65 63 6f 72 64 20 |dlpalett|erecord | |000004f0| 68 70 61 6c 3b 0d 09 0d | 09 69 66 20 28 21 6e 65 |hpal;...|.if (!ne| |00000500| 77 63 6c 65 61 72 68 61 | 6e 64 6c 65 20 28 6c 6f |wclearha|ndle (lo| |00000510| 6e 67 73 69 7a 65 6f 66 | 20 28 74 79 70 61 6c 65 |ngsizeof| (typale| |00000520| 74 74 65 72 65 63 6f 72 | 64 29 2c 20 28 48 61 6e |tterecor|d), (Han| |00000530| 64 6c 65 20 2a 29 20 26 | 68 70 61 6c 29 29 0d 09 |dle *) &|hpal))..| |00000540| 09 72 65 74 75 72 6e 20 | 28 6e 69 6c 29 3b 0d 09 |.return |(nil);..| |00000550| 0d 09 28 2a 2a 68 70 61 | 6c 29 2e 6d 61 63 77 69 |..(**hpa|l).macwi| |00000560| 6e 64 6f 77 20 3d 20 6d | 61 63 77 69 6e 64 6f 77 |ndow = m|acwindow| |00000570| 3b 0d 09 0d 09 28 2a 2a | 68 70 61 6c 29 2e 63 74 |;....(**|hpal).ct| |00000580| 69 63 6f 6e 73 20 3d 20 | 63 74 69 63 6f 6e 73 3b |icons = |cticons;| |00000590| 0d 09 0d 09 28 2a 2a 68 | 70 61 6c 29 2e 70 61 6c |....(**h|pal).pal| |000005a0| 65 74 74 65 77 69 64 74 | 68 20 3d 20 28 32 20 2a |ettewidt|h = (2 *| |000005b0| 20 64 72 61 77 69 6e 73 | 65 74 29 20 2b 20 28 32 | drawins|et) + (2| |000005c0| 20 2a 20 77 69 64 74 68 | 70 61 6c 65 74 74 65 69 | * width|palettei| |000005d0| 63 6f 6e 29 3b 0d 09 0d | 09 72 65 74 75 72 6e 20 |con);...|.return | |000005e0| 28 68 70 61 6c 29 3b 0d | 09 7d 20 2f 2a 6e 65 77 |(hpal);.|.} /*new| |000005f0| 70 61 6c 65 74 74 65 2a | 2f 0d 09 0d 09 0d 76 6f |palette*|/.....vo| |00000600| 69 64 20 64 69 73 70 6f | 73 65 70 61 6c 65 74 74 |id dispo|sepalett| |00000610| 65 20 28 68 64 6c 70 61 | 6c 65 74 74 65 72 65 63 |e (hdlpa|letterec| |00000620| 6f 72 64 20 68 70 61 6c | 29 20 7b 0d 09 0d 09 64 |ord hpal|) {....d| |00000630| 69 73 70 6f 73 65 68 61 | 6e 64 6c 65 20 28 28 48 |isposeha|ndle ((H| |00000640| 61 6e 64 6c 65 29 20 68 | 70 61 6c 29 3b 0d 09 7d |andle) h|pal);..}| |00000650| 20 2f 2a 64 69 73 70 6f | 73 65 70 61 6c 65 74 74 | /*dispo|sepalett| |00000660| 65 2a 2f 0d 09 0d 09 0d | 73 74 61 74 69 63 20 76 |e*/.....|static v| |00000670| 6f 69 64 20 63 65 6e 74 | 65 72 73 6d 61 6c 6c 69 |oid cent|ersmalli| |00000680| 63 6f 6e 20 28 52 65 63 | 74 20 72 2c 20 73 68 6f |con (Rec|t r, sho| |00000690| 72 74 20 69 63 6f 6e 6c | 69 73 74 2c 20 73 68 6f |rt iconl|ist, sho| |000006a0| 72 74 20 69 63 6f 6e 6e | 75 6d 2c 20 62 6f 6f 6c |rt iconn|um, bool| |000006b0| 65 61 6e 20 66 6c 69 6e | 76 65 72 74 29 20 7b 0d |ean flin|vert) {.| |000006c0| 09 0d 09 72 2e 74 6f 70 | 20 2b 3d 20 28 72 2e 62 |...r.top| += (r.b| |000006d0| 6f 74 74 6f 6d 20 2d 20 | 72 2e 74 6f 70 20 2d 20 |ottom - |r.top - | |000006e0| 68 65 69 67 68 74 73 6d | 61 6c 6c 69 63 6f 6e 29 |heightsm|allicon)| |000006f0| 20 2f 20 32 3b 0d 09 0d | 09 72 2e 6c 65 66 74 20 | / 2;...|.r.left | |00000700| 2b 3d 20 28 72 2e 72 69 | 67 68 74 20 2d 20 72 2e |+= (r.ri|ght - r.| |00000710| 6c 65 66 74 20 2d 20 77 | 69 64 74 68 73 6d 61 6c |left - w|idthsmal| |00000720| 6c 69 63 6f 6e 29 20 2f | 20 32 3b 0d 09 0d 09 70 |licon) /| 2;....p| |00000730| 6c 6f 74 73 6d 61 6c 6c | 69 63 6f 6e 20 28 72 2c |lotsmall|icon (r,| |00000740| 20 69 63 6f 6e 6c 69 73 | 74 2c 20 69 63 6f 6e 6e | iconlis|t, iconn| |00000750| 75 6d 2c 20 66 6c 69 6e | 76 65 72 74 29 3b 0d 09 |um, flin|vert);..| |00000760| 7d 20 2f 2a 63 65 6e 74 | 65 72 73 6d 61 6c 6c 69 |} /*cent|ersmalli| |00000770| 63 6f 6e 2a 2f 0d 09 0d | 09 0d 73 74 61 74 69 63 |con*/...|..static| |00000780| 20 76 6f 69 64 20 7a 7a | 7a 20 28 52 65 63 74 20 | void zz|z (Rect | |00000790| 72 29 20 7b 0d 09 0d 09 | 62 69 67 73 74 72 69 6e |r) {....|bigstrin| |000007a0| 67 20 62 73 3b 0d 09 0d | 09 73 65 74 73 74 72 69 |g bs;...|.setstri| |000007b0| 6e 67 6c 65 6e 67 74 68 | 20 28 62 73 2c 20 30 29 |nglength| (bs, 0)| |000007c0| 3b 0d 09 0d 09 70 75 73 | 68 69 6e 74 20 28 72 2e |;....pus|hint (r.| |000007d0| 74 6f 70 2c 20 62 73 29 | 3b 20 70 75 73 68 73 74 |top, bs)|; pushst| |000007e0| 72 69 6e 67 20 28 22 5c | 70 2c 20 22 2c 20 62 73 |ring ("\|p, ", bs| |000007f0| 29 3b 0d 09 0d 09 70 75 | 73 68 69 6e 74 20 28 72 |);....pu|shint (r| |00000800| 2e 6c 65 66 74 2c 20 62 | 73 29 3b 20 70 75 73 68 |.left, b|s); push| |00000810| 73 74 72 69 6e 67 20 28 | 22 5c 70 2c 20 22 2c 20 |string (|"\p, ", | |00000820| 62 73 29 3b 0d 09 0d 09 | 70 75 73 68 69 6e 74 20 |bs);....|pushint | |00000830| 28 72 2e 62 6f 74 74 6f | 6d 2c 20 62 73 29 3b 20 |(r.botto|m, bs); | |00000840| 70 75 73 68 73 74 72 69 | 6e 67 20 28 22 5c 70 2c |pushstri|ng ("\p,| |00000850| 20 22 2c 20 62 73 29 3b | 0d 09 0d 09 70 75 73 68 | ", bs);|....push| |00000860| 69 6e 74 20 28 72 2e 72 | 69 67 68 74 2c 20 62 73 |int (r.r|ight, bs| |00000870| 29 3b 20 0d 09 0d 09 44 | 65 62 75 67 53 74 72 20 |); ....D|ebugStr | |00000880| 28 62 73 29 3b 0d 09 7d | 20 2f 2a 7a 7a 7a 2a 2f |(bs);..}| /*zzz*/| |00000890| 0d 09 0d 0d 76 6f 69 64 | 20 70 61 6c 65 74 74 65 |....void| palette| |000008a0| 75 70 64 61 74 65 20 28 | 68 64 6c 70 61 6c 65 74 |update (|hdlpalet| |000008b0| 74 65 72 65 63 6f 72 64 | 20 68 70 61 6c 29 20 7b |terecord| hpal) {| |000008c0| 0d 0d 09 62 6f 6f 6c 65 | 61 6e 20 66 6c 62 69 74 |...boole|an flbit| |000008d0| 6d 61 70 20 3d 20 66 61 | 6c 73 65 3b 0d 09 52 65 |map = fa|lse;..Re| |000008e0| 63 74 20 72 20 3d 20 28 | 2a 2a 68 70 61 6c 29 2e |ct r = (|**hpal).| |000008f0| 72 3b 0d 09 73 68 6f 72 | 74 20 69 3b 0d 09 0d 09 |r;..shor|t i;....| |00000900| 2f 2a 66 6c 62 69 74 6d | 61 70 20 3d 20 6f 70 65 |/*flbitm|ap = ope| |00000910| 6e 62 69 74 6d 61 70 20 | 28 72 2c 20 28 2a 2a 68 |nbitmap |(r, (**h| |00000920| 70 61 6c 29 2e 6d 61 63 | 77 69 6e 64 6f 77 29 3b |pal).mac|window);| |00000930| 2a 2f 0d 09 0d 09 70 75 | 73 68 62 61 63 6b 63 6f |*/....pu|shbackco| |00000940| 6c 6f 72 20 28 6c 69 67 | 68 74 65 72 62 6c 75 65 |lor (lig|hterblue| |00000950| 69 6e 64 65 78 29 3b 0d | 09 0d 09 45 72 61 73 65 |index);.|...Erase| |00000960| 52 65 63 74 20 28 26 72 | 29 3b 0d 09 0d 09 4d 6f |Rect (&r|);....Mo| |00000970| 76 65 54 6f 20 28 72 2e | 72 69 67 68 74 20 2d 20 |veTo (r.|right - | |00000980| 31 2c 20 72 2e 74 6f 70 | 29 3b 0d 09 0d 09 4c 69 |1, r.top|);....Li| |00000990| 6e 65 54 6f 20 28 72 2e | 72 69 67 68 74 20 2d 20 |neTo (r.|right - | |000009a0| 31 2c 20 72 2e 62 6f 74 | 74 6f 6d 29 3b 0d 09 0d |1, r.bot|tom);...| |000009b0| 09 66 6f 72 20 28 69 20 | 3d 20 30 3b 20 69 20 3c |.for (i |= 0; i <| |000009c0| 20 28 2a 2a 68 70 61 6c | 29 2e 63 74 69 63 6f 6e | (**hpal|).cticon| |000009d0| 73 3b 20 69 2b 2b 29 20 | 7b 0d 09 09 0d 09 09 67 |s; i++) |{......g| |000009e0| 65 74 69 63 6f 6e 72 65 | 63 74 20 28 68 70 61 6c |eticonre|ct (hpal| |000009f0| 2c 20 69 2c 20 26 72 29 | 3b 0d 09 09 0d 09 09 69 |, i, &r)|;......i| |00000a00| 66 20 28 6f 70 74 69 6f | 6e 6b 65 79 64 6f 77 6e |f (optio|nkeydown| |00000a10| 20 28 29 29 0d 09 09 09 | 7a 7a 7a 20 28 72 29 3b | ())....|zzz (r);| |00000a20| 0d 09 0d 09 09 70 75 73 | 68 62 61 63 6b 63 6f 6c |.....pus|hbackcol| |00000a30| 6f 72 20 28 77 68 69 74 | 65 69 6e 64 65 78 29 3b |or (whit|eindex);| |00000a40| 0d 09 09 0d 09 09 45 72 | 61 73 65 52 65 63 74 20 |......Er|aseRect | |00000a50| 28 26 72 29 3b 0d 09 09 | 0d 09 09 63 65 6e 74 65 |(&r);...|...cente| |00000a60| 72 73 6d 61 6c 6c 69 63 | 6f 6e 20 28 72 2c 20 28 |rsmallic|on (r, (| |00000a70| 2a 2a 68 70 61 6c 29 2e | 73 69 63 6e 72 65 73 6f |**hpal).|sicnreso| |00000a80| 75 72 63 65 2c 20 69 2c | 20 66 61 6c 73 65 29 3b |urce, i,| false);| |00000a90| 0d 09 09 0d 09 09 70 6f | 70 62 61 63 6b 63 6f 6c |......po|pbackcol| |00000aa0| 6f 72 20 28 29 3b 0d 09 | 09 0d 09 09 46 72 61 6d |or ();..|....Fram| |00000ab0| 65 52 65 63 74 20 28 26 | 72 29 3b 0d 09 09 0d 09 |eRect (&|r);.....| |00000ac0| 09 69 66 20 28 28 2a 2a | 68 70 61 6c 29 2e 69 74 |.if ((**|hpal).it| |00000ad0| 65 6d 20 5b 69 5d 2e 73 | 65 6c 65 63 74 65 64 29 |em [i].s|elected)| |00000ae0| 20 7b 0d 09 09 09 0d 09 | 09 09 49 6e 73 65 74 52 | {......|..InsetR| |00000af0| 65 63 74 20 28 26 72 2c | 20 32 2c 20 32 29 3b 0d |ect (&r,| 2, 2);.| |00000b00| 09 09 09 0d 09 09 09 49 | 6e 76 65 72 74 52 65 63 |.......I|nvertRec| |00000b10| 74 20 28 26 72 29 3b 0d | 09 09 09 7d 0d 09 09 7d |t (&r);.|...}...}| |00000b20| 20 2f 2a 66 6f 72 2a 2f | 0d 09 0d 09 70 6f 70 62 | /*for*/|....popb| |00000b30| 61 63 6b 63 6f 6c 6f 72 | 20 28 29 3b 0d 09 09 0d |ackcolor| ();....| |00000b40| 09 69 66 20 28 66 6c 62 | 69 74 6d 61 70 29 0d 09 |.if (flb|itmap)..| |00000b50| 09 63 6c 6f 73 65 62 69 | 74 6d 61 70 20 28 28 2a |.closebi|tmap ((*| |00000b60| 2a 68 70 61 6c 29 2e 6d | 61 63 77 69 6e 64 6f 77 |*hpal).m|acwindow| |00000b70| 29 3b 0d 09 7d 20 2f 2a | 75 70 64 61 74 65 70 61 |);..} /*|updatepa| |00000b80| 6c 65 74 74 65 2a 2f 0d | 09 0d 0d 76 6f 69 64 20 |lette*/.|...void | |00000b90| 69 6e 76 61 6c 70 61 6c | 65 74 74 65 20 28 68 64 |invalpal|ette (hd| |00000ba0| 6c 70 61 6c 65 74 74 65 | 72 65 63 6f 72 64 20 68 |lpalette|record h| |00000bb0| 70 61 6c 29 20 7b 0d 09 | 0d 09 49 6e 76 61 6c 52 |pal) {..|..InvalR| |00000bc0| 65 63 74 20 28 26 28 2a | 2a 68 70 61 6c 29 2e 72 |ect (&(*|*hpal).r| |00000bd0| 29 3b 0d 09 7d 20 2f 2a | 69 6e 76 61 6c 70 61 6c |);..} /*|invalpal| |00000be0| 65 74 74 65 2a 2f 0d 09 | 0d 09 0d 76 6f 69 64 20 |ette*/..|...void | |00000bf0| 69 6e 76 61 6c 70 61 6c | 65 74 74 65 69 74 65 6d |invalpal|etteitem| |00000c00| 20 28 68 64 6c 70 61 6c | 65 74 74 65 72 65 63 6f | (hdlpal|ettereco| |00000c10| 72 64 20 68 70 61 6c 2c | 20 73 68 6f 72 74 20 69 |rd hpal,| short i| |00000c20| 74 65 6d 6e 75 6d 29 20 | 7b 0d 09 0d 09 52 65 63 |temnum) |{....Rec| |00000c30| 74 20 72 3b 0d 09 0d 09 | 67 65 74 69 63 6f 6e 72 |t r;....|geticonr| |00000c40| 65 63 74 20 28 68 70 61 | 6c 2c 20 69 74 65 6d 6e |ect (hpa|l, itemn| |00000c50| 75 6d 2c 20 26 72 29 3b | 0d 09 09 0d 09 49 6e 76 |um, &r);|.....Inv| |00000c60| 61 6c 52 65 63 74 20 28 | 26 72 29 3b 0d 09 7d 20 |alRect (|&r);..} | |00000c70| 2f 2a 69 6e 76 61 6c 70 | 61 6c 65 74 74 65 69 74 |/*invalp|aletteit| |00000c80| 65 6d 2a 2f 0d 09 0d 09 | 0d 76 6f 69 64 20 70 61 |em*/....|.void pa| |00000c90| 6c 65 74 74 65 6d 6f 75 | 73 65 64 6f 77 6e 20 28 |lettemou|sedown (| |00000ca0| 68 64 6c 70 61 6c 65 74 | 74 65 72 65 63 6f 72 64 |hdlpalet|terecord| |00000cb0| 20 68 70 61 6c 29 20 7b | 0d 09 0d 09 52 65 63 74 | hpal) {|....Rect| |00000cc0| 20 72 70 61 6c 65 74 74 | 65 20 3d 20 28 2a 2a 68 | rpalett|e = (**h| |00000cd0| 70 61 6c 29 2e 72 3b 0d | 09 73 68 6f 72 74 20 69 |pal).r;.|.short i| |00000ce0| 3b 0d 09 0d 09 66 6f 72 | 20 28 69 20 3d 20 30 3b |;....for| (i = 0;| |00000cf0| 20 69 20 3c 20 28 2a 2a | 68 70 61 6c 29 2e 63 74 | i < (**|hpal).ct| |00000d00| 69 63 6f 6e 73 3b 20 69 | 2b 2b 29 20 7b 0d 09 0d |icons; i|++) {...| |00000d10| 09 09 52 65 63 74 20 72 | 3b 0d 09 09 0d 09 09 67 |..Rect r|;......g| |00000d20| 65 74 69 63 6f 6e 72 65 | 63 74 20 28 68 70 61 6c |eticonre|ct (hpal| |00000d30| 2c 20 69 2c 20 26 72 29 | 3b 0d 09 09 0d 09 09 69 |, i, &r)|;......i| |00000d40| 66 20 28 50 74 49 6e 52 | 65 63 74 20 28 6d 6f 75 |f (PtInR|ect (mou| |00000d50| 73 65 73 74 61 74 75 73 | 2e 6c 6f 63 61 6c 70 74 |sestatus|.localpt| |00000d60| 2c 20 26 72 29 29 20 7b | 0d 09 09 09 0d 09 09 09 |, &r)) {|........| |00000d70| 28 2a 2a 68 70 61 6c 29 | 2e 69 74 65 6d 73 65 6c |(**hpal)|.itemsel| |00000d80| 65 63 74 65 64 20 3d 20 | 69 3b 0d 09 09 09 0d 09 |ected = |i;......| |00000d90| 09 09 28 2a 28 2a 2a 68 | 70 61 6c 29 2e 69 74 65 |..(*(**h|pal).ite| |00000da0| 6d 68 69 74 63 61 6c 6c | 62 61 63 6b 29 20 28 29 |mhitcall|back) ()| |00000db0| 3b 0d 09 09 09 7d 0d 09 | 09 7d 20 2f 2a 66 6f 72 |;....}..|.} /*for| |00000dc0| 2a 2f 0d 09 0d 09 2f 2a | 69 6e 76 61 6c 70 61 6c |*/..../*|invalpal| |00000dd0| 65 74 74 65 20 28 68 70 | 61 6c 29 3b 2a 2f 0d 09 |ette (hp|al);*/..| |00000de0| 7d 20 2f 2a 70 61 6c 65 | 74 74 65 6d 6f 75 73 65 |} /*pale|ttemouse| |00000df0| 64 6f 77 6e 2a 2f 0d 09 | 0d 09 0d 76 6f 69 64 20 |down*/..|...void | |00000e00| 70 61 6c 65 74 74 65 61 | 63 74 69 76 61 74 65 20 |palettea|ctivate | |00000e10| 28 68 64 6c 70 61 6c 65 | 74 74 65 72 65 63 6f 72 |(hdlpale|tterecor| |00000e20| 64 20 68 70 61 6c 2c 20 | 62 6f 6f 6c 65 61 6e 20 |d hpal, |boolean | |00000e30| 66 6c 61 63 74 69 76 61 | 74 65 29 20 7b 0d 09 7d |flactiva|te) {..}| |00000e40| 20 2f 2a 70 61 6c 65 74 | 74 65 61 63 74 69 76 61 | /*palet|teactiva| |00000e50| 74 65 2a 2f 0d 09 0d 0d | 76 6f 69 64 20 70 61 6c |te*/....|void pal| |00000e60| 65 74 74 65 73 65 6c 65 | 63 74 69 74 65 6d 20 28 |ettesele|ctitem (| |00000e70| 68 64 6c 70 61 6c 65 74 | 74 65 72 65 63 6f 72 64 |hdlpalet|terecord| |00000e80| 20 68 70 61 6c 2c 20 73 | 68 6f 72 74 20 69 74 65 | hpal, s|hort ite| |00000e90| 6d 6e 75 6d 29 20 7b 0d | 09 0d 09 73 68 6f 72 74 |mnum) {.|...short| |00000ea0| 20 69 3b 0d 09 0d 09 66 | 6f 72 20 28 69 20 3d 20 | i;....f|or (i = | |00000eb0| 30 3b 20 69 20 3c 20 6d | 61 78 70 61 6c 65 74 74 |0; i < m|axpalett| |00000ec0| 65 69 74 65 6d 73 3b 20 | 69 2b 2b 29 20 7b 0d 09 |eitems; |i++) {..| |00000ed0| 09 0d 09 09 69 66 20 28 | 28 2a 2a 68 70 61 6c 29 |....if (|(**hpal)| |00000ee0| 2e 69 74 65 6d 20 5b 69 | 5d 2e 73 65 6c 65 63 74 |.item [i|].select| |00000ef0| 65 64 29 0d 09 09 09 69 | 6e 76 61 6c 70 61 6c 65 |ed)....i|nvalpale| |00000f00| 74 74 65 69 74 65 6d 20 | 28 68 70 61 6c 2c 20 69 |tteitem |(hpal, i| |00000f10| 29 3b 0d 09 09 09 0d 09 | 09 28 2a 2a 68 70 61 6c |);......|.(**hpal| |00000f20| 29 2e 69 74 65 6d 20 5b | 69 5d 2e 73 65 6c 65 63 |).item [|i].selec| |00000f30| 74 65 64 20 3d 20 66 61 | 6c 73 65 3b 0d 09 09 7d |ted = fa|lse;...}| |00000f40| 20 2f 2a 66 6f 72 2a 2f | 0d 09 09 0d 09 69 66 20 | /*for*/|.....if | |00000f50| 28 21 28 2a 2a 68 70 61 | 6c 29 2e 69 74 65 6d 20 |(!(**hpa|l).item | |00000f60| 5b 69 74 65 6d 6e 75 6d | 5d 2e 73 65 6c 65 63 74 |[itemnum|].select| |00000f70| 65 64 29 0d 09 09 69 6e | 76 61 6c 70 61 6c 65 74 |ed)...in|valpalet| |00000f80| 74 65 69 74 65 6d 20 28 | 68 70 61 6c 2c 20 69 74 |teitem (|hpal, it| |00000f90| 65 6d 6e 75 6d 29 3b 0d | 09 09 0d 09 28 2a 2a 68 |emnum);.|....(**h| |00000fa0| 70 61 6c 29 2e 69 74 65 | 6d 20 5b 69 74 65 6d 6e |pal).ite|m [itemn| |00000fb0| 75 6d 5d 2e 73 65 6c 65 | 63 74 65 64 20 3d 20 74 |um].sele|cted = t| |00000fc0| 72 75 65 3b 0d 09 0d 09 | 2f 2a 69 6e 76 61 6c 70 |rue;....|/*invalp| |00000fd0| 61 6c 65 74 74 65 20 28 | 68 70 61 6c 29 3b 2a 2f |alette (|hpal);*/| |00000fe0| 0d 09 7d 20 2f 2a 70 61 | 6c 65 74 74 65 73 65 6c |..} /*pa|lettesel| |00000ff0| 65 63 74 69 74 65 6d 2a | 2f 0d 09 0d 09 0d 09 00 |ectitem*|/.......| |00001000| 00 00 01 00 00 00 01 36 | 00 00 00 36 00 00 00 1e |.......6|...6....| |00001010| ff f7 f7 f7 f7 f6 f6 f6 | f6 f6 f6 f7 f7 f7 f7 ff |........|........| |00001020| ff ff ff ff ff f7 f7 f7 | f7 f7 f7 ff ff ff ff ff |........|........| |00001030| 0f 61 70 70 6c 65 74 70 | 61 6c 65 74 74 65 2e 63 |.appletp|alette.c| |00001040| 02 00 00 00 50 61 72 74 | 53 49 54 78 00 00 00 00 |....Part|SITx....| |00001050| 00 00 50 61 72 74 53 49 | 54 78 00 00 00 00 00 00 |..PartSI|Tx......| |00001060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001070| 00 00 a9 81 44 cc 00 00 | 00 00 00 00 01 54 80 43 |....D...|.....T.C| |00001080| 55 51 30 23 6a a1 c8 10 | d5 4e 7f 8f ff f2 30 07 |UQ0#j...|.N....0.| |00001090| 7f f9 00 07 7f fc 80 07 | 00 00 60 07 00 00 1f e7 |........|..`.....| |000010a0| 00 00 00 1f 00 00 00 07 | 00 00 00 00 00 00 00 00 |........|........| |000010b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000010c0| 00 00 00 00 00 ff 00 fe | 00 ff 81 fe 01 ff 83 ff |........|........| |000010d0| 01 ff c7 ff 03 ff cf ff | 03 ff df ff 07 ff ff ff |........|........| |000010e0| 07 ff ff ff 0f ff ff ff | 0f ff ff ff 1f ff ff ff |........|........| |000010f0| 1f ff ff ff 3f ff ff ff | 3f ff ff ff 7f ff ff ff |....?...|?.......| |00001100| 00 00 00 2f 02 00 80 00 | 00 00 06 32 2e 30 72 63 |.../....|...2.0rc| |00001110| 31 21 32 2e 30 72 63 31 | 3b 20 a9 20 31 39 39 32 |1!2.0rc1|; . 1992| |00001120| 2c 20 55 73 65 72 4c 61 | 6e 64 20 53 6f 66 74 77 |, UserLa|nd Softw| |00001130| 61 72 65 65 72 65 00 00 | 01 00 00 00 01 36 00 00 |areere..|.....6..| |00001140| 00 36 00 00 00 1e 00 ed | cb 18 0d 98 00 00 00 1c |.6......|........| |00001150| 00 1e ff ff 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00001170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| +--------+-------------------------+-------------------------+--------+--------+